<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h1>欢迎来到页面B</h1>
		<input type="button" name="" id="" value="去页面C" onclick="goC()" />
		<input type="button" name="" id="" value="前进按钮" onclick="qianjin()" />
		<input type="button" name="" id="" value="后退按钮" onclick="houtui()" />
		<input type="button" name="" id="" value="页面刷新"onclick="shuaxin()" />
	</body>
	<script type="text/javascript">
		function goC(){
			location.href='indexC.html';
		}
		function qianjin(){
			history.forward();
		}
		function houtui(){
			history.back();
		}
		function shuaxin(){
			location.reload();
			alert('刷新成功！');
		}
	</script>
</html>
